﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="EnmineKaitlin.search" MasterPageFile="~/MasterPage/SubPage.Master" %>
<%@ Register Assembly="EnmineKaitlin" Namespace="EnmineKaitlin.Common" TagPrefix="Pagging" %>
<asp:Content ID="ctSearch" ContentPlaceHolderID="cphSubPage" runat="server">
<div class="box-sidebar">
    <h2><asp:Label ID="lblTitle" runat="server"></asp:Label></h2>
    <div class="content">        
        <asp:Repeater ID="rptListNews" runat="server">
            <HeaderTemplate><ul class="list-news"></HeaderTemplate>
            <ItemTemplate>            
                <li><a href='/category/<%#the_category_id(int.Parse(Eval("PostID").ToString())) %>/<%#ConvertTitleSeo(get_category_name(int.Parse(the_category_id(int.Parse(Eval("PostID").ToString()))))) %>/<%#Eval("PostID") %>/<%#ConvertTitleSeo(get_post_name(int.Parse(Eval("PostID").ToString()))) %>'><%#Eval("Title") %> <span class="datetime">(<%#DisplayDateTime(Eval("CreateDate").ToString())%>)</span></a></li>
            </ItemTemplate>
            <FooterTemplate></ul></FooterTemplate>
        </asp:Repeater>
        <div class="pagenav">
            <Pagging:PaggingControl runat="server" ID="ctlPagging" Mode="Url" PageSize="20"
            PreviousClause="<img src='../images/Back.png'/>" NextClause="<img src='../images/Forward.png'/>" />
        </div>
    </div>
</div>
</asp:Content>